#ifndef MODEL_TRANSACTION_H
#define MODEL_TRANSACTION_H

#include <QObject>

class Model_Transaction : public QObject
{
    Q_OBJECT
    Q_PROPERTY(int id READ id NOTIFY idChanged)
    Q_PROPERTY(QString desc READ desc NOTIFY descChanged)
    Q_PROPERTY(QString starttime READ starttime NOTIFY starttimeChanged)
    Q_PROPERTY(QString endtime READ endtime NOTIFY endtimeChanged)
    Q_PROPERTY(QString stat READ stat NOTIFY statChanged)
public:
    Model_Transaction(int id, QString desc, QString starttime, QString endtime, QString stat);
    QString desc() const;
    QString starttime() const;
    QString endtime() const;
    QString stat() const;
    int id() const;
    /*void setType( const QString &newtype);
    void setDesc( const QString &newdesc);
    void setStartTime( const QString &newstarttime);
    void setEndTime( const QString &newendtime);
    void setStat( const QString &newstat);*/
signals:
    void idChanged();
    void descChanged();
    void starttimeChanged();
    void endtimeChanged();
    void statChanged();
private:
    int m_id;
    QString m_desc;
    QString m_starttime;
    QString m_endtime;
    QString m_stat;
};

#endif // MODEL_TRANSACTION_H
